package apogeu.seminario.models.dados;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import apogeu.monitora.models.dados.Prefeitura;

@Entity
@Table(name="inscricao", schema="seminario")

@NamedNativeQueries({
	@NamedNativeQuery(name="inscricoes", query="SELECT * FROM SEMINARIO.INSCRICAO ORDER BY IDINSCRICAO", resultClass=Inscricao.class)
})


public class Inscricao {
	@Id
	@SequenceGenerator(name="inscricao", sequenceName="seminario.sq_inscricao")
	@GeneratedValue(generator="inscricao", strategy=GenerationType.AUTO)
	@Column(name="idinscricao")
	private int idInscricao;
	
	@Column(name="nome")
	private String nome;
	
	@Column(name="endereco")
	private String endereco;
	
	@Column(name="cpf")
	private String cpf;
	
	@Column(name="telefone")
	private String telefone;
	
	@Column(name="email")
	private String email;
	
	@Column(name="categoria")
	private String categoria;
	
	@Column(name="data_inscricao")
	@Temporal(TemporalType.DATE)
	private java.util.Date data;

	public int getIdInscricao() {
		return idInscricao;
	}

	public void setIdInscricao(int idInscricao) {
		this.idInscricao = idInscricao;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getEndereco() {
		return endereco;
	}

	public void setEndereco(String endereco) {
		this.endereco = endereco;
	}

	public String getCpf() {
		return cpf;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

	public String getTelefone() {
		return telefone;
	}

	public void setTelefone(String telefone) {
		this.telefone = telefone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCategoria() {
		return categoria;
	}

	public void setCategoria(String categoria) {
		this.categoria = categoria;
	}

	public java.util.Date getData() {
		return data;
	}

	public void setData(java.util.Date data) {
		this.data = data;
	}
}
